﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using HammerMUD.Items;

namespace HammerMUD.Commands
{
    public class InventoryCommand : Command
    {
        public InventoryCommand()
        {
            Name = "inventory";
            Help = "inventory";
            SecurityLevel = HammerMUD.Admin.SecurityLevel.User;
        }

        public override void Do(HammerMUD.System.User from, List<string> arguments)
        {
            String message = String.Empty;
            message = message + "Your inventory:\n\r";
            foreach (Item i in from.UserAccount.CurrentCharacter.Inventory)
            {
                message = message + "\t" + i.Name + "\n\r";
            }
            message = message + "\n\r";
            from.Send(message);
        }
    }
}
